package designpatterns.visitor;

import lombok.extern.slf4j.Slf4j;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 2/17/2022 7:56 PM
 */
@Slf4j
public class ConcreteVisitorB implements Visitor {

    @Override
    public void visit(ConcreteElementA element) {
        log.info("具体访问者B访问-->" + element.operationA());

    }

    @Override
    public void visit(ConcreteElementB element) {
        log.info("具体访问者B访问-->" + element.operationB());

    }
}
